﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KingerRobot.MexicoSailunMDC.Dao
{
    partial class Db : K8.EF.DbContext
    {
        /// <summary>
        /// 任务管理视图
        /// </summary>
        public DbSet<POVTasks> VTasks { get; set; }
    }

    /// <summary>
    /// 任务管理视图
    /// </summary>
    [Table("v_task")]
    public class POVTasks
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        [Column("objid")]
        public long? Id { get; set; }

        /// <summary>
        /// 任务号
        /// </summary>
        [Column("task_no")]
        public int? TaskNo { get; set; }

        /// <summary>
        /// 任务类型
        /// </summary>
        [Column("task_type")]
        public int? TaskType { get; set; }

        /// <summary>
        /// 组号
        /// </summary>
        [Column("task_group")]
        public int? TaskGroup { get; set; }


        [Column("current_equip_id")]
        public long? CurrentEquipId { get; set; }

        /// <summary>
        /// 条码
        /// </summary>
        [Column("product_code")]
        public string ProductCode { get; set; }

        /// <summary>
        /// 开始库位名
        /// </summary>
        [Column("start_loc")]
        public string StartLoc { get; set; }

        /// <summary>
        /// 当前库位名
        /// </summary>
        [Column("current_loc")]
        public string CurrentLoc { get; set; }

        /// <summary>
        /// 目标库位名
        /// </summary>
        [Column("target_loc")]
        public string TargetLoc { get; set; }

        /// <summary>
        /// 起始设备名
        /// </summary>
        [Column("start_equip")]
        public string StartEquip { get; set; }

        /// <summary>
        /// 当前设备名
        /// </summary>
        [Column("current_equip")]
        public string CurrentEquip { get; set; }

        /// <summary>
        /// 任务状态
        /// </summary>
        [Column("task_status")]
        public int? TaskStatus { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("create_time")]
        public DateTime? createTime { get; set; }

        /// <summary>
        /// 指令创建时间
        /// </summary>
        [Column("cmd_time")]
        public DateTime? CmdTime { get; set; }

        /// <summary>
        /// 指令执行时间
        /// </summary>
        [Column("cmd_excute_time")]
        public DateTime? CmdExcuteTime { get; set; }


        /// <summary>
        /// 物料编号
        /// </summary>
        [Column("material_code")]
        public string MaterialCode { get; set; }

        /// <summary>
        /// 胎胚高度
        /// </summary>
        [Column("material_height")]
        public decimal? MaterialHeight { get; set; }


    }
}
